body {
  font-family: 'Arial', sans-serif;
  background: url('images/1\ \(36\).jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

.navbar {
  background-color: rgba(255, 105, 180, 0.8);
  /* 半透明背景 */
  padding: 10px;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.navbar li {
  float: left;
}

.navbar li.right {
  float: right;
}

.navbar li a,
.navbar li button {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar li a:hover,
.navbar li button:hover {
  background-color: rgba(255, 20, 147, 0.8);
  /* 半透明背景 */
}

.content {
  padding: 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  /* 半透明背景 */
  margin: 20px;
  border-radius: 10px;
  position: relative;
  /* 使子元素可以绝对定位 */
}

.profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.profile-item {
  text-align: center;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ff69b4;
}

.birthday {
  margin-top: 10px;
  cursor: pointer;
  color: #ff69b4;
}

#loveDays {
  font-size: 24px;
  color: #ff69b4;
  cursor: pointer;
  /* 添加鼠标指针样式 */
}

.love-days-container {
  text-align: center;
}

form {
  margin: 20px 0;
}

form label {
  display: block;
  margin: 10px 0 5px;
}

form input {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: calc(100% - 22px);
  /* 确保左右两侧的间距一致 */
  box-sizing: border-box;
  /* 确保padding不会导致宽度超出 */
}

form button {
  padding: 10px 20px;
  background-color: #ff69b4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #ff1493;
}

#anniversaryContainer {
  position: fixed;
  right: 20px;
  /* 调整right值，使其往左移动 */
  top: 300px;
  /* 调整top值，使其往下移动 */
  width: 20%;
  /* 占上边透明框的五分之一 */
  height: 60%;
  /* 调整高度，使其更低 */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px 10px 10px 10px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  box-sizing: border-box;
  /* 确保padding不会导致宽度超出 */
}

#anniversaryList {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#anniversaryList li {
  background-color: rgba(255, 255, 255, 0.8);
  margin: 5px 0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  /* 使加号按钮居中 */
}

.add-button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  /* 与纪念日项的间距一致 */
  background-color: rgba(255, 255, 255, 0.8);
  color: #ff69b4;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  font-size: 24px;
}

.add-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.form-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 300px;
  border-radius: 10px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.product-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 200px;
  height: 200px;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 5px;
}

.product-card p {
  margin: 0 0 10px;
  color: #ff69b4;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 5px;
}

.product-card button {
  background-color: #ff69b4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.product-card button:hover {
  background-color: #ff1493;
}

.add-card {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 48px;
  color: #ff69b4;
  background-color: #f9f9f9;
  border: 2px dashed #ddd;
}

.add-card:hover {
  background-color: #f0f0f0;
}

.product-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.product-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.product-list-item span {
  flex-grow: 1;
}

.delete-button {
  background-color: #ff69b4;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.delete-button:hover {
  background-color: #ff1493;
}